package com.jt.flight.model.afare;

/**
 * since 2015/11/25.
 */
public class Segment {

    private String carrier;
    private String flightNumber;
    private String depAirport;
    private String depTime;
    private String arrAirport;
    private String arrTime;
    private String stopCities;
    private boolean codeshare;
    private String cabin;
    private String aircraftCode;

    public String getCarrier() {
        return carrier;
    }

    public void setCarrier(String carrier) {
        this.carrier = carrier;
    }

    public String getFlightNumber() {
        return flightNumber;
    }

    public void setFlightNumber(String flightNumber) {
        this.flightNumber = flightNumber;
    }

    public String getDepAirport() {
        return depAirport;
    }

    public void setDepAirport(String depAirport) {
        this.depAirport = depAirport;
    }

    public String getDepTime() {
        return depTime;
    }

    public void setDepTime(String depTime) {
        this.depTime = depTime;
    }

    public String getArrAirport() {
        return arrAirport;
    }

    public void setArrAirport(String arrAirport) {
        this.arrAirport = arrAirport;
    }

    public String getArrTime() {
        return arrTime;
    }

    public void setArrTime(String arrTime) {
        this.arrTime = arrTime;
    }

    public String getStopCities() {
        return stopCities;
    }

    public void setStopCities(String stopCities) {
        this.stopCities = stopCities;
    }

    public boolean isCodeshare() {
        return codeshare;
    }

    public void setCodeshare(boolean codeshare) {
        this.codeshare = codeshare;
    }

    public String getCabin() {
        return cabin;
    }

    public void setCabin(String cabin) {
        this.cabin = cabin;
    }

    public String getAircraftCode() {
        return aircraftCode;
    }

    public void setAircraftCode(String aircraftCode) {
        this.aircraftCode = aircraftCode;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Segment{");
        sb.append("carrier='").append(carrier).append('\'');
        sb.append(", flightNumber='").append(flightNumber).append('\'');
        sb.append(", depAirport='").append(depAirport).append('\'');
        sb.append(", depTime='").append(depTime).append('\'');
        sb.append(", arrAirport='").append(arrAirport).append('\'');
        sb.append(", arrTime='").append(arrTime).append('\'');
        sb.append(", stopCities='").append(stopCities).append('\'');
        sb.append(", codeshare=").append(codeshare);
        sb.append(", cabin='").append(cabin).append('\'');
        sb.append(", aircraftCode='").append(aircraftCode).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
